package lib;

import java.io.Serializable;

public class RequestMessage implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = -9040479273965431406L;
	private int type;
	private int messageId;
	private byte[] digest;
	
	public RequestMessage(int messageId) {
		this.type = Symbols.MESSAGE_ID_REQ;
		this.messageId = messageId;
	}
	
	public RequestMessage(byte[] digest) {
		this.type = Symbols.MESSAGE_DIGEST_REQ;
		this.digest = digest;
	}
	
	public int getType() {
		return type;
	}

	public void setType(int type) {
		this.type = type;
	}

	public int getMessageId() {
		return messageId;
	}
	
	public void setMessageId(int messageId) {
		this.messageId = messageId;
	}
	
	public byte[] getDigest() {
		return digest;
	}
	
	public void setDigest(byte[] digest) {
		this.digest = digest;
	}
	
}
